package edu.rit.drh4818.fire.colormap;

import java.awt.Color;

import edu.rit.drh4818.volume.Colormap;


/**
 * 
 */
public class LinearColormap extends Colormap 
{
	public static String NAME = "Linear";
		
	public LinearColormap() 
	{	
		for( int x = 40; x < 255; x++ )
		{
			colorMapping[255-x] = new Color( 250 +( x/51 ), x, 0 ).getRGB();
		}
		
		for( int x = 1; x < 40; x++ )
		{
			colorMapping[255-x] = new Color( x/51, x/51, 0 ).getRGB();
		}
	}
	
	public String toString()
	{
		return NAME;
	}
}
